<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>
<div id="leftcolumn">
	<c:choose>
		<c:when test="${pm.result eq null}">
			<h2>
				数据丢失，请稍后再试！
			</h2>
		</c:when>
		<c:otherwise>
			<c:forEach var="article" items="${pm.result}" varStatus="status">
				<div class="post">
					<div class="postdate">
						<fmt:formatDate value="${article.articleCreateTime}" pattern="dd" />
						<div class="month">
							<fmt:formatDate value="${article.articleCreateTime}" pattern="MM" />
						</div>
					</div>
					<div class="postbody">
						<h2>
							${article.articleTitle }
						</h2>
						<div class="tagline">
							作者：
							<span>${article.authorName}</span>
						</div>
						<img src="images/photo04.gif" alt="" width="20" height="30"/>
						<div class="posttext">
							<p>
								${fn:substring(article.articleContent,0,200)}......
							</p>
							<div class="comment_more">
								<span>我要评论</span>-
								<a href="#">阅读更多</a>
							</div>
						</div>
					</div>
				</div>
			</c:forEach>
		</c:otherwise>
	</c:choose>
      
    <!-- 分页信息 -->
	<div align="right">
		<c:if test="${pm.result ne null}">
			<script>
         	var pg = new showPages('pg');
         	pg.pageCount = ${pm.maxPage};
         	pg.argName = 'currentPage';
         	pg.printHtml();
         </script>
		</c:if>
	</div>
	<br />
</div>

